package com.beiding;

import com.beiding.config.CommonFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(defaultConfiguration = {CommonFeignConfig.class})
public class TenantFacadeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TenantFacadeApplication.class, args);

        RestTemplate template = new RestTemplate();

        template.postForEntity("http://127.0.0.1/ua/user/sendCode", null, Object.class);


    }
}